#ifndef PARSEJSONINFO_H
#define PARSEJSONINFO_H
#include "weatherdata.h"
// #include "updateui.h"

#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QObject>
#include <QDebug>

class ParseJsonInfo : public QObject
{
    Q_OBJECT
public:
    explicit ParseJsonInfo(QObject* parent = nullptr);

public slots:
    //*用于接收weatherfetcher.cpp中发出的信号，并解析json数据
    void parseJson(QByteArray data);
private:
    Today mToday;
    Day mDay[6];

signals:
    //*解析完成，向别的类发送信号
    void parseCompleted(const Today& today, const Day* days);
};

#endif // PARSEJSONINFO_H
